//
//  UITextView+Add.swift
//  QuantumWar
//
//  Created by mysj on 16/7/25.
//  Copyright © 2016年 zeng. All rights reserved.
//

import UIKit

extension UITextView {

    
    
    convenience init(TextColor: UIColor, backColor: UIColor = UIColor.clearColor(), cornerRadius: CGFloat = 1, borderCorlor: UIColor, borderWidth: CGFloat = 2) {
        self.init()
        textColor = TextColor
        backgroundColor = backColor
        layer.cornerRadius = cornerRadius > 1 ? cornerRadius: 1
        layer.borderColor  = borderCorlor.CGColor
        layer.borderWidth  = borderWidth > 2 ? borderWidth: 2
    }
}
